#include "question.h"
#include "ui_question.h"

Question::Question(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Question)
{
    ui->setupUi(this);
    //设置登录界面的背景图
    this->setFixedSize(540,400);//固定窗口大小
    QPalette pal =this->palette();
    QImage ImgAllbackground(":/images/background1.jpg");
    QImage fitimpic = ImgAllbackground.scaled(this->width(),this->height(),Qt::IgnoreAspectRatio);
    pal.setBrush(QPalette::Window,QBrush(fitimpic));
    setPalette(pal);
}

Question::~Question()
{
    delete ui;
}
